import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    theme:'dark'
  },
  getters: {
  },
  mutations: {
    changeTheme(state,payload){
      if(payload){
        console.log(123);
        state.theme = 'dark'
      }else{
        console.log(321);

        state.theme = 'roma'
      }
    }
  },
  actions: {
  },
  modules: {
  }
})
